<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="page">
	<div class="pageHeader">
		<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${ctx}/comm/quartz.action"
			method="post">
			<%@include file="/common/pageParam.jsp" %>
			<div class="searchBar">
				<ul class="searchContent">
					<li>
						<label>
							Trg名称：
						</label>
						<input type="text" name="filter_LIKES_triggerName" value="${param['filter_LIKES_triggerName']}" size="30" />
					</li>
					<li>
						<label>
							Job名称：
						</label>
						<input type="text" name="filter_LIKES_jobName" value="${param['filter_LIKES_jobName']}" size="30" />
					</li>
				</ul>
				<%@include file="/common/subBar.jsp" %>
			</div>
		</form>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li>
					<a class="icon" href="${ctx}/comm/quartz.action" target="navTab" rel="A_VIEW_QRTZ"><span>刷新</span>
					</a>
				</li>
				<li class="line">
					line
				</li>
				<security:authorize ifAnyGranted="A_ADD_QRTZ">
					<li>
						<a class="add" href="${ctx}/comm/quartz!input.action" target="navTab"><span>添加</span> </a>
					</li>
				</security:authorize>
				<security:authorize ifAnyGranted="A_DEL_QRTZ">
					<li>
						<a class="delete" href="${ctx}/comm/quartz!stop.action?id={sid_user}" target="ajaxTodo"
							title="确定要删除吗?"><span>删除</span> </a>
					</li>
				</security:authorize>
				<security:authorize ifAnyGranted="A_MODIFY_QRTZ">
					<li>
						<a class="edit" href="${ctx}/comm/quartz!input.action?id={sid_user}" target="navTab"><span>修改</span>
						</a>
					</li>
				</security:authorize>
				<li class="line">
					line
				</li>
				<li>
					<a class="icon" href="javascript:void(0);"><span>导出</span> </a>
				</li>
			</ul>
		</div>
		<table class="table" layoutH="138" width="100%">
			<thead>
				<tr>
					<th width="20">
						ID
					</th>
					<th width="80">
						TRG名称
					</th>
					<th width="40">
						TRG组别
					</th>
					<th width="80">
						JOB名称
					</th>
					<th width="90">
						上次触发时间
					</th>
					<th width="90">
						下次触发时间
					</th>
					<th width="25">
						优先级
					</th>
					<th width="40">
						状态
					</th>
					<th width="40">
						类型
					</th>
					<th width="90">
						开始运行时间
					</th>
					<th width="90">
						结束时间
					</th>
					<th width="70">
						操作
					</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="page.result" status="st">
					<tr target="sid_user" rel="${triggerName}">
						<td>
							<s:property value='#st.index+1' />
						</td>
						<td>
							<a href="${ctx}/comm/quartz!input.action?triggerName=${triggerName}" target="navTab">${triggerName}</a>
						</td>
						<td>
							${triggerGroup}
						</td>
						<td>
							${jobName}
						</td>
						<td>
							<fmt:formatDate value="${prevFireTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							<fmt:formatDate value="${nextFireTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							${priority}
						</td>
						<td>
							<core:text dicCode="${triggerState}" type="DIC" />
						</td>
						<td>
							${triggerType}
						</td>
						<td>
							<fmt:formatDate value="${startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							<fmt:formatDate value="${endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							<a href="${ctx}/comm/quartz!start.action?id=${triggerName}" target="ajaxTodo">启动 </a>
							<a href="${ctx}/comm/quartz!pause.action?id=${triggerName}" target="ajaxTodo" title="确定要暂停吗?">暂停</a>
							<a href="${ctx}/comm/quartz!stop.action?id=${triggerName}" target="ajaxTodo" title="确定要删除吗?">删除</a>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>
	<%@include file="/common/pagination.jsp"%>
</div>